#include <iostream>

using namespace std;

int main()
{
    long long a = 0, b = 0;
    cin >> a >> b;
    if (a > b)
        swap(a, b);
    for (long long i = a; ; i += a)
    {
        if (i % a == 0 && i % b == 0)
        {
            cout << i << endl;
            break;
        }
    }
    return 0;
}